import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:get/get.dart';

import 'Colors.dart';
import 'page/SplashPage.dart';


void main() => runApp(
    MyApp(),
);

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: '曦诗',
      debugShowCheckedModeBanner: false,
      localizationsDelegates: [
        // ... app-specific localization delegate[s] here
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      supportedLocales: [
        const Locale.fromSubtags(languageCode: 'zh'),
        const Locale.fromSubtags(languageCode: 'en'),
        // Chinese *See Advanced Locales below*
        // ... other locales the app supports
      ],
      theme: ThemeData(
        primarySwatch: Colors.brown,
        accentColor: Colors.brown,

      ),
      home: Splash(),
    );
  }
}